package com.hospital.doctor.doctorc.entity;

import lombok.Data;

@Data
public class MedicineEntity {

    private Integer id;//开药记录编号
    private Integer userid;//用户开药编号
    private String username;//用户姓名
    private String medicine;//药名
    private int medicineid;//药物id
    private Integer sum;//药品数量
    private String time;//开药时间
    private String doctorId;
    private String doctorName;//医生姓名
    private String drugname;
    private int did;//医生id
    private String type;//用药方法

    public MedicineEntity(Integer id, Integer userid, String username, String medicine, int medicineid, Integer sum, String time, String doctorId, String doctorName, String drugname, int did, String type) {
        this.id = id;
        this.userid = userid;
        this.username = username;
        this.medicine = medicine;
        this.medicineid = medicineid;
        this.sum = sum;
        this.time = time;
        this.doctorId = doctorId;
        this.doctorName = doctorName;
        this.drugname = drugname;
        this.did = did;
        this.type = type;
    }

    public MedicineEntity(Integer id, Integer userid, String username, String medicine, Integer sum, String time, String doctorName, String type) {
        this.id = id;
        this.userid = userid;
        this.username = username;
        this.medicine = medicine;
        this.sum = sum;
        this.time = time;
        this.doctorName = doctorName;
        this.type = type;
    }

    public MedicineEntity(Integer id, Integer userid, String username, int medicineid, Integer sum, String doctorName, String type) {
        this.id = id;
        this.userid = userid;
        this.username = username;
        this.medicineid = medicineid;
        this.sum = sum;
        this.doctorName = doctorName;
        this.type = type;
    }


}
